package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.User;

/**
 * 用户服务接口
 */
public interface UserService {
    public User findByUsername(String username);

    //分页查询
    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    //新增用户
    public void add(User user, Integer[] roles);

    //根据用户id查询
    public User findByuSerId(Integer id);

    //编辑用户
    void edit(User user, Integer[] roles);

    //删除用户
    void delete(Integer id);
}
